<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('pinpai/index')}">标签列表</a></li>
			<li><a href="{:url('pinpai/add')}">新增标签</a></li>
		</ul>
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('pinpai/listOrder')}">
            <div class="table-actions">
                <button class="btn btn-sm btn-primary js-ajax-submit" type="submit"
                        title="{:lang('Sort')}" data-toggle="tooltip">
                    <i class="fa fa-sort-numeric-asc fa-fw"></i>
                </button>
            </div>
			<table class="table table-hover table-bordered" id="menus-table">
				<thead>
					<tr>
						<th width="100">{:lang('SORT')}</th>
						<th width="50">ID</th>
						<th>标签名称</th>
						<th width="240">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>
							<input name='list_orders[{$vo.id}]' class="input input-order mr5" type='text' size='3' value='{$vo.list_order}' style="width:50px;">
						</td>
						<td>{$vo.id}</td>
						<td>{$vo.title}</td>
						<td>
							<a class="btn btn-xs btn-primary" href='{:url("pinpai/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('pinpai/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'collapsed'
            });
        });
    });
</script>
</body>
</html>